home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 2.7 KB | 131 lines | [TEXT/MPS ] |
- ;
- ; File: EPPC.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__EPPC__') = 'UNDEFINED' THEN
- __EPPC__ SET 1
-
-
- IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
- include 'Errors.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__PPCTOOLBOX__') = 'UNDEFINED' THEN
- include 'PPCToolbox.a'
- ENDIF
- ; include 'AppleTalk.a' ;
- ; include 'Types.a' ;
- ; include 'OSUtils.a' ;
- ; include 'MixedMode.a' ;
- ; include 'Memory.a' ;
-
- IF &TYPE('__PROCESSES__') = 'UNDEFINED' THEN
- include 'Processes.a'
- ENDIF
- ; include 'Events.a' ;
- ; include 'Quickdraw.a' ;
- ; include 'QuickdrawText.a' ;
- ; include 'Files.a' ;
-
- kHighLevelEvent EQU 23
- ; postOptions currently supported
- receiverIDMask EQU $0000F000
- receiverIDisPSN EQU $00008000
- receiverIDisSignature EQU $00007000
- receiverIDisSessionID EQU $00006000
- receiverIDisTargetID EQU $00005000
- systemOptionsMask EQU $00000F00
- nReturnReceipt EQU $00000200
- priorityMask EQU $000000FF
- nAttnMsg EQU $00000001
- ; constant for return receipts
- HighLevelEventMsgClass EQU 'jaym'
- rtrnReceiptMsgID EQU 'rtrn'
- msgWasPartiallyAccepted EQU 2
- msgWasFullyAccepted EQU 1
- msgWasNotAccepted EQU 0
-
- TargetID RECORD 0
- sessionID ds.l 1
- name ds.l 20
- location ds.w 69
- recvrName ds.l 20
- sizeof EQU 302
- ENDR
-
- HighLevelEventMsg RECORD 0
- HighLevelEventMsgHeaderLength ds.w 1
- version ds.w 1
- reserved1 ds.l 1
- theMsgEvent ds EventRecord
- userRefcon ds.l 1
- postingOptions ds.l 1
- msgLength ds.l 1
- sizeof EQU 36
- ENDR
-
- IF GENERATING68K THEN
- Macro
- _PostHighLevelEvent
- move.w #$0034,-(sp)
- dc.w $A88F
- EndM
- ELSE
- IMPORT PostHighLevelEvent
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _AcceptHighLevelEvent
- move.w #$0033,-(sp)
- dc.w $A88F
- EndM
- ELSE
- IMPORT AcceptHighLevelEvent
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetProcessSerialNumberFromPortName
- move.w #$0035,-(sp)
- dc.w $A88F
- EndM
- ELSE
- IMPORT GetProcessSerialNumberFromPortName
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetPortNameFromProcessSerialNumber
- move.w #$0046,-(sp)
- dc.w $A88F
- EndM
- ELSE
- IMPORT GetPortNameFromProcessSerialNumber
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _GetSpecificHighLevelEvent
- move.w #$0045,-(sp)
- dc.w $A88F
- EndM
- ELSE
- IMPORT GetSpecificHighLevelEvent
- ENDIF
-
- ENDIF ; __EPPC__
-